package com.example.finance_oa.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.comment_oa.pojos.Invoice;
import com.example.comment_oa.pojos_vo.InvoiceVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
* @author Jin
* @description 针对表【invoice】的数据库操作Mapper
* @createDate 2022-10-17 10:46:55
* @Entity com.example.finance_oa.pojos.Invoice
*/
@Mapper
public interface InvoiceMapper extends BaseMapper<Invoice> {
    //根据登录的用户查询所有辨别完成的所有发票
    List<Invoice> allbyemId(InvoiceVO invoiceVO);


    //查询所有添加的未辨伪的发票
    List<Invoice> findAllByInvoiceAuthenticity();

    //发票辨伪
    boolean invoiceBybw(InvoiceVO invoiceVO);

    //删除发票
    int deleteByInvoicePhone(String invoicePhone);

    //根据发票号码查重
    List<Invoice> invoicePhone(String invoicePhone);

    //根据员工Id查询未报销的发票
    List<Invoice> selectAllwbx(Integer empId);

    //根据发票号码修改发票的状态
    int updateInvoicePhone(String invoicePhone);

    //根据发票号码将发票改为已报销
    int updateInvoicePhone2(String invoicePhone);

}




